package aop.spring_aop_aspect.spring;

import java.beans.PropertyEditorSupport;

/**
 * Created by IntelliJ IDEA.
 * User: anzhen
 * Date: 14-8-9
 * Time: ����8:38
 * To change this template use File | Settings | File Templates.
 */
public class TransformUser extends PropertyEditorSupport {

    public void setAsText(String text) {
        String[] data = text.split(",");
        User user = new User();
        user.setName(data[0]);
        user.setAge(Integer.parseInt(data[1]));
        this.setValue(user);
    }
}
